<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<HTML lang="en">
<HEAD>
 <LINK rel="StyleSheet" href="../BBWin.css">
 <TITLE>BBWinUpdate Agent</TITLE>
 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
 <meta name="copyright" content="Copyright &copy; 2006 by Etienne Grignon. Licenced under GPL.">
</HEAD>
<BODY>
 <H1>BBWinUpdate</H1>
 <H3>Description</H3>
<p>
BBWinUpdate agent is an agent used to update the local BBWin configuration from the central hobbit server.
It use the hobbit "config" protocol word. This agent can be used with hobbit 4.1 or higher.
The bbdisplay used with the agent is the first listed in the bbwin section of the BBWin.cfg configuration file.
</p>
<H3>Configuration</H3>
<UL>
 <LI class="OptionDirective"><b>setting</b> directive syntax :
<p>
<pre class="Config">
&lt;setting name="" value="" /&gt;
</pre>
<p>
<table class="OptionTable" cellSpacing="0" cellPadding="0" border="1" id="table1">
	<tr>
		<td class="OptionTitle" vAlign="top" >
		name
		</td>
		<td class="OptionTitle">
		value
		</td>
	</tr>
	<tr>
		<td class="OptionValue" vAlign="top" >
		filename
		</td>
		<td class="OptionValue" vAlign="top">
		This is the filename that will be downloaded from the hobbit server. 
		You have to upload the files on the hobbit server ( Location : $HOBBITHOME/server/etc).
		<b>You can specify several filename settings so you can play with 
		multiple configuration files on the hobbit server.</b>You can use environment variables in the value. Example : "bbwin\%computername%.cfg"</td>
	</tr>
</table>
</UL>
<H3>Examples</H3>
<UL>
<LI>This an example of configuration of the agent :
<p>
<pre class="Config">
&lt;bbwinupdate&gt;
	&lt;setting name="filename" value="bbwin/bbwindefault.cfg" /&gt;
	&lt;setting name="filename" value="bbwin/bbwinSql.cfg" /&gt;
&lt;/bbwinupdate&gt;
</pre>
<LI>This an example of configuration of stored on the hobbit server ($HOBBITHOME/server/etc/bbwin/bbwindefault.cfg for example):
<p>
<pre class="Config">
&lt;?xml version="1.0" encoding="us-ascii" ?&gt;
&lt;configuration&gt;
&lt;cpu&gt;
	&lt;!-- If true, the agent  will always report with green status --&gt;
	&lt;setting name="alwaysgreen" value="false" /&gt;
	&lt;setting name="default" warnlevel="90" paniclevel="95" delay="3" /&gt;
&lt;/cpu&gt;
&lt;disk&gt;
	&lt;setting name="default" warnlevel="85%" paniclevel="95%" /&gt;
	&lt;setting name="cdrom" value="true" /&gt;
&lt;/disk&gt;
&lt;msgs&gt;
	&lt;setting name="alwaysgreen" value="false" /&gt;
	&lt;setting name="summary" value="true" /&gt;
	&lt;match logfile="System" type="error" delay="1h" alarmcolor="red" /&gt;
	&lt;match logfile="System" type="warning" alarmcolor="yellow" /&gt;
	&lt;match logfile="Application" type="error" delay="1h" alarmcolor="red" /&gt;
	&lt;match logfile="Application" type="warning" alarmcolor="yellow" /&gt;
	&lt;match logfile="Security" type="fail" /&gt;
	
	&lt;!-- Some ignore rules examples 
	&lt;ignore logfile="Application" eventid="1030" /&gt;
	&lt;ignore logfile="System" source="W32Time" /&gt;
	--&gt;
&lt;/msgs&gt;
&lt;uptime&gt;
	&lt;setting name="delay" value="30m" /&gt;
&lt;/uptime&gt;
&lt;/configuration&gt;
</pre>
</UL>
<H3>Notes</H3>
<UL>
 <LI> you can not upgrade the bbwin namespace by security
 <LI> a good idea is to create a subdirectory bbwin in your hobbit etc folder
 <LI> the agent is using the bbwin tmp folder to store the update file
</UL>
</BODY>
</HTML>
